package org.android10.viewgroupperformance.Dagger;


import javax.inject.Inject;

/**
 * Created by Bruce-Home on 2015/8/29.
 */
public class ThermosiphonPump implements Pump {
    private final Heater heater;

    @Inject
    public ThermosiphonPump(Heater heater) {
        this.heater = heater;
    }

    @Override
    public void bump() {
        if (heater.isHot()) {
            System.out.println( "=> => pumping => =>");
        }
    }
}
